
class Comment:
    id = ""
    blog_id = ""          # 姓名
    content = ""
    created_time = ""
    user_number = ""
    username = ""





    # 静态方法，从字典解码用户信息
    @staticmethod
    def decode(Comment_dict):
        comment = Comment()

        comment.blog_id = Comment_dict['blogId']
        comment.content = Comment_dict['content']
        comment.user_number = Comment_dict['user_number']

        return comment




